package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.Pagination;
import cn.edu.sdjzu.xg.eagle.entity.Teacher;
import cn.edu.sdjzu.xg.eagle.exception.BysjException;
import cn.edu.sdjzu.xg.eagle.util.Condition;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

public interface TeacherDaoInterface {
    public long add(Teacher teacher, Connection connection) throws SQLException;
    public Collection<Teacher> findAll(Connection connection, List<Condition> conditionList, Pagination pagination) throws BysjException,SQLException;
    public long delete(Teacher teacher, Connection connection) throws SQLException;
}

